<template>
  <div>
    <h3>{{ age }}</h3>
    我是jack组件, 我的技能: 抽烟，喝酒
    <button @click="sing">抽烟</button>
    <button @click="dance">喝酒</button>
  </div>
</template>

<script>
export default {
  name: 'MyJack',
  data() {
    return {
      age: 18
    }
  },
  methods: {
    dance() {
      console.log('抽烟')
    },
    sing() {
      console.log('喝酒')
    }
  }
}
</script>

<style>
</style>